package com.lbl.Dao;

import com.lbl.bean.Contact;

import java.util.ArrayList;
import java.util.List;

public class ContactDao {
    public List<Contact> findAll() {
        //创建集合
        List<Contact> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            //添加元素
            Contact contact = new Contact(i,"name"+i,"男",10,"bj","QQ","xx@qq.com");
            list.add(contact);
        }
        return list;
    }
}
